package com.springboot.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.springboot.mapper.CouponMapper;
import com.springboot.po.Coupon;
import com.springboot.service.CouponService;

@Service
public class CouponServiceImpl implements CouponService{
	@Autowired
	CouponMapper couponmapper;
	public Coupon getCoupon(Integer typeId) {
		return couponmapper.getCoupon(typeId);
	}
	@Override
	public List<Coupon> listCoupon() {
		// TODO Auto-generated method stub
		return couponmapper.listCoupon();
	}
	
	
}
